package com.lu.statistics.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.statistics.entity.TbUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;
@Mapper
public interface TbUserMapper extends BaseMapper<TbUser> {
    /**
     * 查询用户权限信息
     * @param userId
     * @return
     */
    public Set<String> queryUserPermissionsByUser(@Param("userId") int userId);

    /**
     * APP登录：按用户名和密码查询用户信息
     * @param username
     * @param password
     * @return
     */
    TbUser queryUserByUserNameAndPassword(@Param("username") String username,@Param("password") String password);
}
